package com.ny20231079080.dao;

import com.ny20231079080.entity.Products;

import java.sql.SQLException;
import java.util.List;

public interface ProductDao {
    Products findById(int productId) throws SQLException, ClassNotFoundException;

    public List<Products> findAllProducts() throws SQLException,ClassNotFoundException;
    int insert(Products product) throws SQLException, ClassNotFoundException;
    int update(Products product) throws SQLException, ClassNotFoundException;
    int delete(int productId)throws SQLException, ClassNotFoundException;

}
